databake
This crate allows data to write itself into Rust code (bake itself in).
Types that implement the Bake
trait can be written into Rust expressions,
which allows using Rust code itself as a zero-overhead "serialization" strategy.
Example
use *;
use Cow;
let data = ;
assert_eq!;
Derive
Bake
can be automatically derived if the derive
Cargo feature is enabled.
use *;
;
Testing
The [test_bake
] macro can be used to assert that a particular expression is a Bake
fixed point.
test_bake!;
More Information
For more information on development, authorship, contributing etc. please visit ICU4X home page
.